<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分店列表</title>
<link href="__TPL__/style/css/web.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__TPL__/style/js/jquery.min.js"></script> 
<script type="text/javascript" src="__TPL__/style/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
.allshow{ height:auto}
</style>
 <script type="text/javascript"> 
 
  
         $(function(){
		 var flag=1;
		 //alert($(".branch_info p").length);
       $(".branch_info p").click(function(){
	   
        if(flag==1){
		
            $(this).prev().addClass("allshow");				
				$(this).text('收起');
            flag=0;
        }else{
            $(this).prev().removeClass("allshow");				
				$(this).text('显示全部');

            flag=1;
        }	
		 })
 });
 $(document).ready(function(){
	$("#select01").jQSelect({});
	$("#select02").jQSelect({});
	
});	

</script>  

</head>

<body>
<div id="content">
      {include common/header}
       
       <div class="content">
       	<form action="{url('search/hotel')}" method="get">
       		城市：<select name="CityId" style="padding:5px;width:200px">
								{loop $city $val}
								<option value="{$val['CityId']}" {if $val['CityId']==$_G['CityId']}selected="selected"{/if}>{$val['CityName']}</option>
								{/loop}
							</select> 
             抵店日期：<input name="ArrivalDate" type="text" class="Wdate text tt" value="{$_GET['ArrivalDate']}" onClick="WdatePicker({errDealMode:1,minDate:'{$_GET['ArrivalDate']}'})"/> 
             离店日期： <input name="DepartureDate" type="text" class="Wdate text tt" value="{$_GET['DepartureDate']}" onClick="WdatePicker({errDealMode:1,minDate:'{$_GET['ArrivalDate']}'})"/> 
             <input type="submit"  class="button" value="酒店查询" />
       	</form>
             
       </div>
        <div class="content">
          <div class="branch_list">
            <p>酒店列表</p>
            {loop $hotel $val}         
            <!--{print_r($val)}-->
              <div class="branch_info">
                   <ul class="house_info"> <img src="{if $val['pic']}{$val['pic']}{else}__TPL__/style/images/hotel2.jpg{/if}" />
                     <li class="name">{$val['OrgName']}</li>
                          <li class="tel">地址：{$val['Address']}</li>
                          <li class="tel">电话：{$val['TelePhoneNo']}</li>
                          <li> <input name="查看地图" type="button"  class="reserve" value="地图" />
                          	{loop $val['sheshi'] $s}
                            	{if $s['ServiceId']}<span class="icons2 {$sheshi[$s['ServiceId']]}" title="{$s['ServiceName']}">&nbsp;</span> {/if}
                            	<!--<span class="icons2 icons2_tv" title="电视">&nbsp;</span> 
                                <span class="icons2 icons2_wifi" title="无线网络">&nbsp;</span> 
                                <span class="icons2 icons2_park" title="停车场">&nbsp;</span>   -->
							{/loop} 
                          </li>
                   </ul>
                   <div class="house_price" style=" overflow: hidden " >
                     <table width="767" border="0" cellspacing="0" cellpadding="0">
                       <thead>
                         <tr>
                           <td width="137" >房型 </td>
                           <td width="94">门市价</td>
                           <td width="152">房态</td>
                           <td width="94">我的房价</td>
                           <td width="94"> </td>
                         </tr>
                       </thead>
                       <tbody>
                       	{loop $val['fanglei'] $fanglei}                       	
    <!--[OrgId] => 0004f4a8-0000-0006-0000-00001fe86aef
    [OrgName] => 七天泰安店
    [RoomTypeId] => 65b31432-98c1-4f06-a1b6-a91f027d2299
    [RoomTypeName] => 单人间
    [IsBreakfast] => 否
    [RockRate] => 188
    [MyPrice] => 188
    [RoomStatus] => 0-->
                         <tr>
                           <td>{$fanglei['RoomTypeName']}</td>
                           <td class="blue">￥{$fanglei['RockRate']}</td>
                           <td class="green">{if $fanglei['RoomStatus']>0}有空房{else}满房{/if}</td>
                           <td width="94">￥{$fanglei['MyPrice']}</td>
                           <td>
                           	{if $fanglei['RoomStatus']}
                           	<form action="{url('search/resver')}" method="post">
                           		<!--订单页显示需要的数据-->
                           		<input type="hidden" name="Address" id="Address" value="{$val['Address']}" /><!--分店地址-->
                           		<input type="hidden" name="OrgName" id="OrgName" value="{$val['OrgName']}" /><!--分店名称-->
                           		<input type="hidden" name="TelePhoneNo" id="TelePhoneNo" value="{$val['TelePhoneNo']}" /><!--电话-->
                           		<input type="hidden" name="RoomTypeName" id="RoomTypeName" value="{$fanglei['RoomTypeName']}" /><!--房类-->
                           		<input type="hidden" name="ArrivalDate" id="ArrivalDate" value="{$_GET['ArrivalDate']}" /><!--抵店时间-->
                           		<input type="hidden" name="DepartureDate" id="DepartureDate" value="{$_GET['DepartureDate']}" /><!--离店时间-->
                           		<input type="hidden" name="MyPrice" id="MyPrice" value="{$fanglei['MyPrice']}" /><!--价格-->
                           		<!--下单需要的数据-->
                           		<input type="hidden" name="OrgId" id="OrgId" value="{$val['OrgId']}" /><!--分店id-->
                           		<input type="hidden" name="RoomRateTypeId" id="RoomRateTypeId" value="{$fanglei['RoomRateTypeId']}" /><!--房价类Id-->
                           		<input type="hidden" name="RoomTypeId" id="RoomTypeId" value="{$fanglei['RoomTypeId']}" /><!--房间类id-->
                           		<input name="预订2" type="submit"  class="reserve" value="预订"/>
                           	</form>                           	
                           	{/if}
                           </td>
                         </tr>
                         {/loop}
                       </tbody>
                     </table>
                   </div>
                <p align="center" class="show">显示全部</p>
              </div>
              {/loop}
              
          </div>
            
       </div>
</div>
 {include common/foot}
</body>
</html>
